package org.cogaen.net;

import org.cogaen.event.Event;
import org.cogaen.event.EventType;

public class PeerConnectedEvent extends Event {

	public static final EventType TYPE = new EventType("PeerConnected");
	
	private Peer peer;
	
	public PeerConnectedEvent(Peer peer) {
		this.peer = peer;
	}

	public Peer getPeer() {
		return this.peer;
	}
	
	@Override
	public EventType getType() {
		return TYPE;
	}

}
